package com.sojoys.artifact.plugin.event;

import com.xiaoleilu.hutool.util.RandomUtil;

/**
 * 事件
 * @author win7
 *
 */
public class Event {
	// 事件ID
    private String id;
    // 事件类型
    private String type;
    // 事件源(事件参数)
    private Object param;

    public Event(String type) {
        this.id = RandomUtil.randomUUID();
        this.type = type;
    }

    public Event(String type, Object param) {
        this.id = RandomUtil.randomUUID();
        this.type = type;
        this.param = param;
    }

    public String getId() {
        return id;
    }

    public String getType() {
        return type;
    }

    public Object getParam() {
        return param;
    }
}